<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/ckeditor/ckeditor.js"></script>
    <title>权限修改</title>
  </head>
  <body>
    <a href="{$smarty.const.__CONTROLLER__}/showlist" target="_self">[返回]</a>
    <form action="{$smarty.const.__SELF__}" method="post">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;权限修改</div>
          <div class="tablebox">
            <table class="table" border="0">
              <tr>
                <td class="tdl">权限名称</td>
                <td class="tdr">
                    <input type="text" name="auth_name" value="{$list.auth_name}">
                    <input type="hidden" name="auth_id" value="{$list.auth_id}">
                </td>
              </tr>
              <tr>
                <td class="tdl">父级权限</td>
                <td class="tdr">
                    <select name="auth_pid">
                        <option value="0">无</option>
                        {section name=n loop=$fauth}
                        <option value="{$fauth[n].auth_id}" {if $fauth[n].auth_id==$list.auth_pid} selected="selected" {/if} >{$fauth[n].auth_name}</option>
                        {/section}
                    </select>
                </td>
              </tr>
              <tr>
                <td class="tdl">控制器</td>
                <td class="tdr">
                    <input type="text" name="auth_c" value="{$list.auth_c}">
                </td>
              </tr>
              <tr>
                <td class="tdl">操作方法</td>
                <td class="tdr">
                    <input type="text" name="auth_a" value="{$list.auth_a}">
                </td>
              </tr>
              <tr>
                <td class="tdl">状态</td>
                <td class="tdr">
                    <select name="auth_state">
                        <option value="0" {if $list.auth_state==0} selected="selected" {/if} >不可见</option>
                        <option value="1" {if $list.auth_state==1} selected="selected" {/if}>可见</option>
                    </select>
                </td>
              </tr>
              <tr>
                <td class="tdl"></td>
                <td class="tdr">
                  <input type="submit" name="sub" value="修改">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
  </body>
</html>